package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/24
 */
@Data
@TableName("param_config")
public class ParamConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 报警参数配置编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 管线编号
     */
    private Integer pipelineId;
    /**
     * 参数类型 可选：temperature pressure oilPressure casingPressure diffPressure flow totalFlow
     */
    private String type;
    /**
     * 参数下限
     */
    private Double lowerLimit;
    /**
     * 参数上限
     */
    private Double upperLimit;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
